package com.thirdgroup.dao.impl;

import com.thirdgroup.dao.BillingOrderDao;
import com.thirdgroup.pojo.entity.OrderInfo;
import org.junit.Test;

import java.util.List;

import static org.junit.Assert.*;

public class BillingOrderDaoImplTest {
    private BillingOrderDao billingOrderDao=new BillingOrderDaoImpl();

    @Test
    public void selectBycustomerID() {
        List<OrderInfo> s = billingOrderDao.selectBycustomerID("C20220102112159");
        for (OrderInfo orderInfo : s) {
            System.out.println(orderInfo);
        }

    }

    @Test
    public void sumBycustomerID() {
        Double ss = billingOrderDao.SumBycustomerID("C20220102112159");
        System.out.println(ss);
    }

    @Test
    public void sum() {
        Double sum = billingOrderDao.Sum();
        System.out.println(sum);
    }
}